package bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity(name = "owner")
@Table(name ="owner", schema = "md")
@IdClass(value = OwnerPK.class)
public class Owner {
	private int owner_id;
	private String ownername;

	@Column(name = "ownername")
	public String getOwnername() {
		return ownername;
	}

	public void setPropertyValue(String ownername) {
		this.ownername = ownername;
	}

	public void setOwnername(String ownername) {
		this.ownername = ownername;
	}

	@Id
	// @Column(name="owner_id")
	public int getOwner_id() {
		return owner_id;
	}

	public void setOwner_id(int owner_id) {
		this.owner_id = owner_id;
	}
}
